package com.ciko.code.adapter;

import android.content.Context;

import com.ciko.code.base.adapter.CommonAdapter;
import com.ciko.code.base.adapter.ViewHolder;
import com.ciko.code.bean.GetHotActivitiesListEty;
import com.mywork.R;

import java.util.List;

/**
 * Created by 12154 on 2015/10/31.
 */
public class WorkHotActionListAdapter extends CommonAdapter<GetHotActivitiesListEty> {

    public WorkHotActionListAdapter(Context context, List<GetHotActivitiesListEty> mDatas, int itemLayoutId) {
        super(context, mDatas, itemLayoutId);
    }

    @Override
    public void convert(ViewHolder helper, GetHotActivitiesListEty item) {

        helper.setImageUrl(R.id.iv_picHotAction, item.getCoverImg(), R.drawable.shape_rect_gray);
        helper.setText(R.id.tv_titleHotAction, item.getTitle());
        helper.setText(R.id.tv_timeHotAction, item.getCreateTime());

    }


}
